<section>   
<?php

if($this->session->userdata('successmsg')): 
?>
<div class="message success">
<?php echo $this->session->userdata('successmsg'); ?>
</div>

<?php endif; ?>

</section>